package com.xzl.shop.dao;

import com.xzl.shop.model.Goods2;
import com.xzl.shop.model.GoodsType2;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IGoods2Dao {
    List<Goods2> selectGoods(Goods2 g);
    List<GoodsType2> selectTypes();
    Integer insertGoods(Goods2 g);
    Integer updateGoods(Goods2 g);
    List<Goods2> selectGoodsOnSale(Goods2 g);
    List<Goods2> selectGoodsNoSale(Goods2 g);
    Integer downGoods(@Param("array") String[] id);
    Integer upGoods(@Param("array") String[] id);
    List<Goods2> queryNew();
}
